/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="MEDICTOSVIAS")
public class MedictosViasProteu implements Serializable{

    @Id
    @Column(name="MCV_IN_CODIGO")
    private Integer mcvInCodigo;
    @Column(name="MCV_ST_VIA")
    private String mcvStVia;

    public Integer getMcvInCodigo() {
        return mcvInCodigo;
    }

    public void setMcvInCodigo(Integer mcvInCodigo) {
        this.mcvInCodigo = mcvInCodigo;
    }

    public String getMcvStVia() {
        return mcvStVia;
    }

    public void setMcvStVia(String mcvStVia) {
        this.mcvStVia = mcvStVia;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final MedictosViasProteu other = (MedictosViasProteu) obj;
        if (this.mcvInCodigo != other.mcvInCodigo && (this.mcvInCodigo == null || !this.mcvInCodigo.equals(other.mcvInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 61 * hash + (this.mcvInCodigo != null ? this.mcvInCodigo.hashCode() : 0);
        return hash;
    }


}
